<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="../../../../WEB-INF/myTag.tld" prefix="my"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>添加本地关注人员</title>
<link href="<%=request.getContextPath()%>/views/sysdefault/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
<link href="<%=request.getContextPath()%>/views/sysdefault/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="<%=request.getContextPath()%>/views/sysdefault/css/animate.min.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/toastr/toastr.min.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/views/sysdefault/css/style.min.css?v=4.0.0" rel="stylesheet">
<link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">

		<form id="subForm" method="post" class="form-horizontal" >

			<div class="row">
				<!-- 人员信息 -->
				<div class="col-sm-14">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>
								<a class="btn-xs btn-white btn-bitbucket"
									href="javascript:window.history.go(-1);">&nbsp;<i
									class="fa fa-reply"></i>&nbsp;
								</a>&nbsp;&nbsp;人员信息
							</h5>
							<div class="ibox-tools">
								<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
								</a>
							</div>
						</div>

						<div class="ibox-content">

							<div class="row">
								<!-- 第一行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">姓名&nbsp;<i class="fa fa-asterisk" style="color: red; font-size: 10px;"></i>：
										</label>
										<div class="col-sm-2">
											<input type="text" name="xm" id="xm" class="form-control"
												maxlength="20" value="${localAtten.xm}" required="">
										</div>
										<label class="col-sm-1 control-label">曾用名：</label>
										<div class="col-sm-2">
											<input type="text" name="cym" id="cym" class="form-control"
												maxlength="20" value="${localAtten.cym}">
										</div>
										<label class="col-sm-1 control-label">别名：</label>
										<div class="col-sm-2">
											<input type="text" name="bm" id="bm" class="form-control"
												maxlength="20" value="${localAtten.bm}">
										</div>
									</div>
								</div>

								<!-- 第二行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">身份证号&nbsp;<i
											class="fa fa-asterisk" style="color: red; font-size: 10px;"></i>：
										</label>
										<div class="col-sm-2">
											<input type="text" name="sfzh" id="sfzh" class="form-control"
												maxlength="18" value="${localAtten.sfzh}" required="">
										</div>
										<label class="col-sm-1 control-label">出生日期：</label>

										<div class="col-sm-2" id="data_5">
											<div class="input-daterange input-group" id="datepicker">
												<input type="text" class="form-control" 
													id="csrq" value="${localAtten.csrq}" /> <span
													class="input-group-addon"><i class="fa fa-calendar"></i></span>
											</div>
										</div>

										<label class="col-sm-1 control-label">性别：</label>
										<div class="col-sm-1">
											<select name="xb" id="xb" class="form-control">
												<option value="0"></option>
												<option value="1"
													<c:if test="${localAtten.xb == '1'}">selected="selected"</c:if>>男</option>
												<option value="2"
													<c:if test="${localAtten.xb == '2'}">selected="selected"</c:if>>女</option>
											</select>
										</div>
									</div>
								</div>

								<!-- 第三行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">服兵役情况：</label>
										<div class="col-sm-2">
											<input name="fbyqk" id="fbyqk" type="text"
												class="form-control" value="${localAtten.fbyqk}">
										</div>
										<label class="col-sm-1 control-label">文化程度：</label>
										<div class="col-sm-2">
											<input name="whcd" id="whcd" type="text" class="form-control"
												value="${localAtten.whcd}">
										</div>
										<label class="col-sm-1 control-label">就业状况：</label>
										<div class="col-sm-2">
											<input name="jyzk" id="jyzk" type="text" class="form-control"
												value="${localAtten.jyzk}">
										</div>
									</div>
								</div>

								<!-- 第四行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">政治面貌：</label>
										<div class="col-sm-2">
											<input name="zzmm" id="zzmm" type="text" class="form-control"
												value="${localAtten.zzmm}">
										</div>
										<label class="col-sm-1 control-label">宗教信仰：</label>
										<div class="col-sm-2">
											<input name="zjxy" id="zjxy" type="text" class="form-control"
												value="${localAtten.zjxy}">
										</div>
										<label class="col-sm-1 control-label">婚姻状况：</label>
										<div class="col-sm-2">
											<input name="hyzk" id="hyzk" type="text" class="form-control"
												value="${localAtten.hyzk}">
										</div>
									</div>
								</div>

								<!-- 第五行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">年龄：</label>
										<div class="col-sm-1">
											<input id="nl" type="text" class="form-control"
												value="${localAtten.nl}">
										</div>
										<label class="col-sm-1 control-label">身高(CM)：</label>
										<div class="col-sm-1">
											<input name="sg" id="sg" type="text" class="form-control"
												value="${localAtten.sg}">
										</div>
										<label class="col-sm-1 control-label">体型：</label>
										<div class="col-sm-1">
											<input name="tx" id="tx" type="text" class="form-control"
												value="${localAtten.tx}">
										</div>
										<label class="col-sm-1 control-label">血型：</label>
										<div class="col-sm-1">
											<input name="xx" id="xx" type="text" class="form-control"
												value="${localAtten.xx}">
										</div>
									</div>
								</div>

								<!-- 第六行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">脸型：</label>
										<div class="col-sm-1">
											<input name="lx" id="lx" type="text" class="form-control"
												value="${localAtten.lx}">
										</div>
										<label class="col-sm-1 control-label">口音：</label>
										<div class="col-sm-1">
											<input name="ky" id="ky" type="text" class="form-control"
												value="${localAtten.ky}">
										</div>
										<label class="col-sm-1 control-label">鞋号：</label>
										<div class="col-sm-1">
											<input name="xc" id="xc" type="text" class="form-control"
												value="${localAtten.xc}">
										</div>
										<label class="col-sm-1 control-label">足长：</label>
										<div class="col-sm-1">
											<input name="zc" id="zc" type="text" class="form-control"
												value="${localAtten.zc}">
										</div>
									</div>
								</div>

								<!-- 第七行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">体貌特征：</label>
										<div class="col-sm-2">
											<input name="tmtz" id="tmtz" type="text" class="form-control"
												value="${localAtten.tmtz}">
										</div>
										<label class="col-sm-1 control-label">DNA编号：</label>
										<div class="col-sm-2">
											<input name="dbh" id="dbh" type="text" class="form-control"
												value="${localAtten.dbh}">
										</div>
										<label class="col-sm-1 control-label">指纹编号：</label>
										<div class="col-sm-2">
											<input name="zwbh" id="zwbh" type="text" class="form-control"
												value="${localAtten.zwbh}">
										</div>
										<label class="col-sm-2 control-label">是否对比&nbsp;<i
											class="fa fa-asterisk" style="color: red; font-size: 10px;"></i>：
										</label>
										<div class="col-sm-1">
											<select name="isDb" id="isDb" class="form-control" >
												<option value="0"></option>
												<option value="1"
													<c:if test="${localAtten.isDb == '1'}">selected="selected"</c:if>>是</option>
												<option value="2"
													<c:if test="${localAtten.isDb == '2'}">selected="selected"</c:if>>否</option>
											</select>
										</div>
									</div>
								</div>

								<!-- 第八行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">兴趣爱好：</label>
										<div class="col-sm-2">
											<input name="xqah" id="xqah" type="text" maxlength="50"
												class="form-control" value="${localAtten.xqah}">
										</div>
										<label class="col-sm-1 control-label">个人专长：</label>
										<div class="col-sm-2">
											<input name="grzc" id="grzc" type="text" maxlength="50"
												class="form-control" value="${localAtten.grzc}">
										</div>
										<label class="col-sm-2 control-label">本地关注人员编码&nbsp;<i
											class="fa fa-asterisk" style="color: red; font-size: 10px;"></i>：
										</label>
										<div class="col-sm-1">
											<input name="zdrybh" id="zdrybh" type="text" maxlength="50"
												class="form-control" value="${localAtten.zdrybh}" required="">
										</div>
										<label class="col-sm-2 control-label">是否是七类重点人员&nbsp;<i
											class="fa fa-asterisk" style="color: red; font-size: 10px;"></i>：
										</label>
										<div class="col-sm-1">
											<select name="sIsZdry" id="sIsZdry" class="form-control" >
												<option value="0"></option>
												<option value="1"
													<c:if test="${localAtten.sIsZdry == '1'}">selected="selected"</c:if>>是</option>
												<option value="1"
													<c:if test="${localAtten.sIsZdry == '2'}">selected="selected"</c:if>>否</option>
											</select>
										</div>
									</div>
								</div>

								<!-- 第九行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">户籍地址：</label>
										<div class="col-sm-2">
											<input name="hjdxz" id="hjdxz" type="text" maxlength="50"
												class="form-control" value="${localAtten.hjdxz}">
										</div>
										<label class="col-sm-1 control-label">户籍地派出所：</label>
										<div class="col-sm-2">
											<input name="hjdpcs" id="hjdpcs" type="text" maxlength="50"
												class="form-control" value="${localAtten.hjdpcs}">
										</div>
										<label class="col-sm-2 control-label">户籍地编码：</label>
										<div class="col-sm-1">
											<input name="hjdqhDcode" id="hjdqhDcode" type="text"
												maxlength="50" class="form-control"
												value="${localAtten.hjdqhDcode}">
										</div>
										<label class="col-sm-2 control-label">户籍地派出所编码：</label>
										<div class="col-sm-1">
											<input name="hjdpcsDcode" id="hjdpcsDcode" type="text"
												maxlength="50" class="form-control"
												value="${localAtten.hjdpcsDcode}">
										</div>
									</div>
								</div>

								<!-- 第十行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">现住地址：</label>
										<div class="col-sm-2">
											<input name="xzdzxz" id="xzdzxz" type="text" maxlength="50"
												class="form-control" value="${localAtten.xzdzxz}">
										</div>

										<label class="col-sm-1 control-label">现住地派出所：</label>
										<div class="col-sm-2">
											<input name="xzdpcs" id="xzdpcs" type="text" maxlength="50"
												class="form-control" value="${localAtten.xzdpcs}">
										</div>
										<label class="col-sm-2 control-label">现住地区划编码：</label>
										<div class="col-sm-1">
											<input name="xzdqhDcode" id="xzdqhDcode" type="text"
												maxlength="50" class="form-control"
												value="${localAtten.xzdqhDcode}">
										</div>
										<label class="col-sm-2 control-label">现住地派出所编码：</label>
										<div class="col-sm-1">
											<input name="xzdpcsDcode" id="xzdpcsDcode" type="text"
												maxlength="50" class="form-control"
												value="${localAtten.xzdpcsDcode}">
										</div>
									</div>
								</div>

								<!-- 第十一行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">出生地址：</label>
										<div class="col-sm-2">
											<input name="csdxz" id="csdxz" type="text" maxlength="50"
												class="form-control" value="${localAtten.csdxz}">
										</div>
										<label class="col-sm-1 control-label">出生地派出所：</label>
										<div class="col-sm-2">
											<input name="csdpcs" id="csdpcs" type="text" maxlength="50"
												class="form-control" value="${localAtten.csdpcs}">
										</div>
										<label class="col-sm-2 control-label">出生地编码：</label>
										<div class="col-sm-1">
											<input name="csdDcode" id="csdDcode" type="text"
												maxlength="50" class="form-control"
												value="${localAtten.csdDcode}">
										</div>
										<label class="col-sm-2 control-label">出生地派出所编码：</label>
										<div class="col-sm-1">
											<input name="csdpcsDcode" id="csdpcsDcode" type="text"
												maxlength="50" class="form-control"
												value="${localAtten.csdpcsDcode}">
										</div>
									</div>
								</div>

								<!-- 第十二行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">服务处所：</label>
										<div class="col-sm-2">
											<input name="fwcs" id="fwcs" type="text" maxlength="50"
												class="form-control" value="${localAtten.fwcs}">
										</div>
										<label class="col-sm-1 control-label">服务处所详址：</label>
										<div class="col-sm-2">
											<input name="fwcsxz" id="fwcsxz" type="text" maxlength="50"
												class="form-control" value="${localAtten.fwcsxz}">
										</div>
										<label class="col-sm-2 control-label">服务处所派出所：</label>
										<div class="col-sm-1">
											<input name="fwcspcs" id="fwcspcs" type="text" maxlength="50"
												class="form-control" value="${localAtten.fwcspcs}">
										</div>
										<label class="col-sm-2 control-label">服务处所派出所编码：</label>
										<div class="col-sm-1">
											<input name="fwcspcsDcode" id="fwcspcsDcode" type="text"
												maxlength="50" class="form-control"
												value="${localAtten.fwcspcsDcode}">
										</div>
									</div>
								</div>

								<!-- 第十三行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">填报单位：</label>
										<div class="col-sm-2">
											<input name="tbdw" id="tbdw" type="text" maxlength="50"
												class="form-control" value="${localAtten.tbdw}">
										</div>
										<label class="col-sm-1 control-label">填报人：</label>
										<div class="col-sm-2">
											<input name="tbr" id="tbr" type="text" maxlength="50"
												class="form-control" value="${localAtten.tbr}">
										</div>
										<label class="col-sm-2 control-label">填报单位编码：</label>
										<div class="col-sm-1">
											<input name="tbdwDcode" id="tbdwDcode" type="text"
												maxlength="50" class="form-control"
												value="${localAtten.tbdwDcode}">
										</div>
										<label class="col-sm-2 control-label">填报人编码：</label>
										<div class="col-sm-1">
											<input name="tbrDcode" id="tbrDcode" type="text"
												maxlength="50" class="form-control"
												value="${localAtten.tbrDcode}">
										</div>
									</div>
								</div>

								<!-- 第十四行 -->
								<div class="col-sm-12">
									<div class="form-group">
										<label class="col-sm-1 control-label">采集方式：</label>
										<div class="col-sm-2">
											<input name="sjly" id="sjly" type="text" maxlength="50"
												class="form-control" value="${localAtten.sjly}">
										</div>
										<label class="col-sm-1 control-label">有效性：</label>
										<div class="col-sm-2">
											<input name="yxx" id="yxx" type="text" maxlength="50"
												class="form-control" value="${localAtten.yxx}">
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>


			<div class="hr-line-dashed"></div>
			<div class="form-group">
				<div class="col-sm-12">
					<button class="btn btn-primary pull-left " type="button" onclick="addLocalAtten()" >保存</button>
					<!-- <button type="submit" id="save" class="btn btn-primary pull-left " onclick="addRlqbLocalAtten()" >保存</button> -->
				</div>
			</div>
		</form>

	</div>

	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js?v=2.1.4"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/bootstrap.min.js?v=3.3.5"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/content.min.js?v=1.0.0"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/toastr/toastr.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/layer/layer.js"></script>

	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/datapicker/bootstrap-datepicker.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/views/sysdefault/js/uploadPreview.js"></script>

	<script type="text/javascript">
	  var basePath = '<%=request.getContextPath()%>';

		toastr.options = {
			"closeButton" : true,
			"debug" : false,
			"progressBar" : true,
			"positionClass" : "toast-top-left",
			"showDuration" : "400",
			"hideDuration" : "1000",
			"timeOut" : "3000",
			"extendedTimeOut" : "1000",
			"showEasing" : "swing",
			"hideEasing" : "linear",
			"showMethod" : "fadeIn",
			"hideMethod" : "fadeOut"
		}

		//$(function() {

		//	new uploadPreview({
		//		UpBtn : "up_img_1",
		//		DivShow : "imgdiv_1",
		//		ImgShow : "imgShow_1"
		//	});
		//});

		//初始化日期控件
		$("#data_5 .input-daterange").datepicker({
			keyboardNavigation : !1,
			forceParse : !1,
			autoclose : !0
		});
		
		 var addLocalAtten = function(){
		    	var csrq = $('#csrq').val();
		    	var nl = $('#nl').val();
		    	var result= $("#subForm").serialize();
		    	result = result+"&csrqm="+csrq+"&nlm="+nl;
		    	debugger;
		    	var index;

		    	$.ajax({
					type : "POST",
					url : basePath + "/rlqb/addLocalAtten.do",
 					data : result,
 					dataType : "json",
					success : function(msg) { 
						debugger;
						if (msg.errCode == '1') {
							//parent.layerCallBack('1');
						}else{
							toastr.error(msg.errMsg, "提示");
						}
					},
					error : function(XMLHttpRequest, textStatus, errorThrown) {
						debugger;
						toastr.error("系统出错！", "提示");
					},
					beforeSend : function(XMLHttpRequest){
						index = layer.load(0, {
							  shade: [0.3,'#ccc'] //0.1透明度的白色背景
							});
					},
					complete : function(XMLHttpRequest, textStatus){
						layer.close(index);
					}
				});
			
				return false;
		    }
		
		var selectPro = function() {
			layer.open({
				type : 2,
				title : "选择项目",
				fix : false, //不固定
				maxmin : false,
				shadeClose : true,
				shade : 0.3,
				area : [ '1000px', '80%' ],
				content : 'selectPro.do'
			});
		}

		
		var layerCallBack = function(id, name) {
			$("#proId").val(id);
			$("#proName").val(name);

			layer.closeAll();
		}
	</script>
</body>
</html>